package com.mayisoftware.mayioa.business.po.impl.dao;


import com.mayisoftware.mayioa.business.po.api.domain.POBasicInfo;
import com.mayisoftware.mayioa.business.po.api.domain.POImportInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 计划上传记录查询
 */
@Mapper
public interface POUploadMapper {

    /////////////////////////////更新上传记录表/////////////////////
    /**
     *
     * 查询过滤记录信息
     * */
    List<POImportInfo> selectRecordList(POImportInfo record);

    /**
     * 根据ID查询记录信息
     */
    List<POImportInfo> selectRecordListById(@Param("importId") String recordId);

    /**
     * 查询需要解析的记录
     */
    List<POImportInfo> selectRecordListNeedParse();

    /**
     *
     * 更新上传记录
     * */
    int updateInputRecord(POImportInfo record);

    /**
     * 插入上传记录
     * */
   int insertImportOneRecord(POImportInfo wtImportInfo);


    int isPoExist(POBasicInfo poBasicInfo);
    void deleteExistPo(POBasicInfo poBasicInfo);
    int insertPoInfo(POBasicInfo poBasicInfo);

}
